/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package personal.parseInfo;

/**
 *
 * @author PHATNBSE61057
 */
public class TolkienParseInfo {

    public String getWebPage() {
        return "http://www.tolkien.co.uk";
    }

    public String getParsePage() {
        return "http://www.tolkien.co.uk/index.html";
    }

    public String getCategoriesXPath() {
        return "//div[@class='block']/div[@class='cont']/ul/li[contains(@id,'category')]/a";
    }

    public String getCategoriesNameXPath() {
        return ".//span[@class='name']/text()";
    }

    public String getAllBooksXPath() {
        return "//div[@class='productListThbBlock block'] | //div[@class='productListThbBlock block last']";
    }

    public String getBooksLinkXPath() {
        return ".//div/div[@class='imgBlock']/a/@href";
    }

    public String getBooksThumbXPath() {
        return ".//div/div[@class='imgBlock']/a/span/img/@src";
    }

    //Get details xpath from here
    public String getBooksImg() {
        return "//div[@class='pikachoose']/div[@class='pika-stage']/img/@src";
    }

    public String getBooksNameXPath() {
        return "//div[@class='rightContent']/h1/text()";
    }

    public String getBooksPriceXPath() {
        return "//div[@class='productPriceBlock']/span/div/span/text()";
    }

//    public String getBooksStatement() {
//        return "//div/span[@id='product_error']/p";
//    }
    public String getBooksInfoXPath() {
        return "//div[@class='productInfoTop']/div[@class='productAttributes']/div[@class='productAttribute']/label/text() |//div[@class='productInfoTop']/div[@class='productAttributes']/div[@class='productAttribute']/span/text()";
    }

//    public String getPrintOnDemand() {
//        return "//div[@class='productAttribute printOnDemand']/label/text() | //div[@class='productAttribute printOnDemand']/span/text()";
//    }
    //Lấy book Description sẽ cho ra nhiều đoạn text cần có code xử lý
    public String getBooksDescription() {
        return "//div[@class='productDescriptionText']/div/text()";
    }

    //Get button to load next page
    public String getNextButton() {
        return "//div[@class='paginationBlock pTop']/div/div[@class='block']/ul/li[@class='next']/a";
    }
}
